import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "accountpermits" })
export class AccountPermits extends EntityObjectType<AccountPermits>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    permitId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    permitName: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    authObjectId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    authObjectType: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    refObjectId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    refObjectType: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    orgId: string;

    groupName: string;
    type: string;
}

